package com.simple.service.permission.impl;

import com.simple.dao.permission.PermissionDao;
import com.simple.service.permission.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class PermissionServiceBean implements PermissionService {

    @Autowired
    private PermissionDao permissionDao;
    @Override
    public List<PermissionDao> findAllPermissions() {
        return permissionDao.findAllPermissions();
    }
}
